package 笔试记录.M9day4小红书;

import java.util.Scanner;

public class Solution1 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();//定义数组长度
        int m = sc.nextInt();//定义复制次数
        int k = sc.nextInt();//定义要取的下标数

        int[] arr = new int[n * 2];
        for (int i = 0; i < n; i++) {
            arr[i] = sc.nextInt();
        }

        //进行复制
        int left = 0,right = arr.length - 1;
        while(left < right){
            arr[right--] = arr[left++];
        }
        System.out.println(arr[k % arr.length - 1]);
    }
}
